{% load satchmo_currency satchmo_discounts %}
{% if products %}
	<form id="add_to_cart_form" action="{% url satchmo_quick_order %}" method="post">
	<p><input type="submit" value="Добавить в корзину/Изменить количество"></p>
	<table>
	{% for product in products %} 
		<tr>
			<td><a href="{{ product.get_absolute_url }}"><span id="prod__{{ product.slug }}">{{ product.translated_name }}<span></a></td>
			<td class="price">{{ product|discount_price:sale|currency }}</td>
			<td>{{product.items_in_stock}}</td>
			<td>{% if product.items_in_stock %}<input type="text" name="qty__{{ product.slug }}" size="2">{% else %}&nbsp;{% endif %}</td>
		</tr>
	{% endfor %}
	</table>
	<p><input type="submit" value="Добавить в корзину/Изменить количество"></p>
	</form>
{% endif %}
